package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 机构部门历史
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpHistory extends Model<JbdpHistory> {

    private static final long serialVersionUID=1L;

    /**
     * 历史ID
     */
    @TableId("HISTORY_ID")
    private String historyId;

    /**
     * 实体ID
     */
    @TableField("ENTITY_ID")
    private String entityId;

    /**
     * 实体类型
     */
    @TableField("ENTITY_TYPE")
    private String entityType;

    /**
     * 变更时间
     */
    @TableField("CHANGE_TIME")
    private LocalDateTime changeTime;

    /**
     * 变更人
     */
    @TableField("CHANGE_PERSON")
    private String changePerson;

    /**
     * 变更类型
     */
    @TableField("CHANGE_TYPE")
    private String changeType;

    /**
     * 历史快照
     */
    @TableField("HISTORY_INFO")
    private String historyInfo;

    /**
     * 变前ID
     */
    @TableField("BEFORE_ID")
    private String beforeId;

    /**
     * 变后ID
     */
    @TableField("AFTER_ID")
    private String afterId;

    /**
     * 变前值
     */
    @TableField("BEFORE_VALUE")
    private String beforeValue;

    /**
     * 变后值
     */
    @TableField("AFTER_VALUE")
    private String afterValue;


    public String getHistoryId() {
        return historyId;
    }

    public JbdpHistory setHistoryId(String historyId) {
        this.historyId = historyId;
        return this;
    }

    public String getEntityId() {
        return entityId;
    }

    public JbdpHistory setEntityId(String entityId) {
        this.entityId = entityId;
        return this;
    }

    public String getEntityType() {
        return entityType;
    }

    public JbdpHistory setEntityType(String entityType) {
        this.entityType = entityType;
        return this;
    }

    public LocalDateTime getChangeTime() {
        return changeTime;
    }

    public JbdpHistory setChangeTime(LocalDateTime changeTime) {
        this.changeTime = changeTime;
        return this;
    }

    public String getChangePerson() {
        return changePerson;
    }

    public JbdpHistory setChangePerson(String changePerson) {
        this.changePerson = changePerson;
        return this;
    }

    public String getChangeType() {
        return changeType;
    }

    public JbdpHistory setChangeType(String changeType) {
        this.changeType = changeType;
        return this;
    }

    public String getHistoryInfo() {
        return historyInfo;
    }

    public JbdpHistory setHistoryInfo(String historyInfo) {
        this.historyInfo = historyInfo;
        return this;
    }

    public String getBeforeId() {
        return beforeId;
    }

    public JbdpHistory setBeforeId(String beforeId) {
        this.beforeId = beforeId;
        return this;
    }

    public String getAfterId() {
        return afterId;
    }

    public JbdpHistory setAfterId(String afterId) {
        this.afterId = afterId;
        return this;
    }

    public String getBeforeValue() {
        return beforeValue;
    }

    public JbdpHistory setBeforeValue(String beforeValue) {
        this.beforeValue = beforeValue;
        return this;
    }

    public String getAfterValue() {
        return afterValue;
    }

    public JbdpHistory setAfterValue(String afterValue) {
        this.afterValue = afterValue;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.historyId;
    }

    @Override
    public String toString() {
        return "JbdpHistory{" +
        "historyId=" + historyId +
        ", entityId=" + entityId +
        ", entityType=" + entityType +
        ", changeTime=" + changeTime +
        ", changePerson=" + changePerson +
        ", changeType=" + changeType +
        ", historyInfo=" + historyInfo +
        ", beforeId=" + beforeId +
        ", afterId=" + afterId +
        ", beforeValue=" + beforeValue +
        ", afterValue=" + afterValue +
        "}";
    }
}
